﻿using SEComEnabler.SEComStructure;
using TKT.Lifter.CIM.Lifter.HSMSMsg.HSMSConstant;

namespace TKT.Lifter.CIM.Lifter.HSMSMsg.TransferActionMsg
{
    public class S2F32
    {
        public static SXTransaction MakeTransactionSend(bool flag)
        {
            SXTransaction sXTransaction = new SXTransaction();
            sXTransaction.Stream = 2;
            sXTransaction.Function = 32;
            sXTransaction.Wait = false;
            sXTransaction.MessageData = "Reply Date and Time Set Request";
            if (flag)
            {
                sXTransaction.WriteNode(SX.SECSFormat.B, 1, ((int)MsgACK.TIACK.OK).ToString(), "ACK", new int[0]);
            }
            else
            {
                sXTransaction.WriteNode(SX.SECSFormat.B, 1, ((int)MsgACK.TIACK.Error).ToString(), "ACK", new int[0]);
            }
            return sXTransaction;
        }
    }
}
